<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
        >

<ui:composition template="template/base.xhtml">
    <ui:define name="title">Cinema Admin website</ui:define>

    <ui:define name="content">
        <h:outputStylesheet library="css" name="adminLogin.css"/>

        <div class="centerDiv">
            <h3>Cinema Administrator Site</h3>
            <h5>Please authenticate yourself</h5>
            <h:form>
                <h:inputText label="Username" class="inputText"
                             size="20" value="#{loginController.uname}">
                </h:inputText>

                <h:inputSecret label="Password" class="inputText"
                               size="20" value="#{loginController.password}">
                </h:inputSecret>

                <h:commandButton class="adminLoginBtn" value="Login"
                                 action="#{loginController.logIn}">
                </h:commandButton>
                <h:commandButton class="adminLoginBtn" action="index?faces-redirect=true" value="Back"/>
            </h:form>
            <h:messages/>
        </div>
    </ui:define>
</ui:composition>

</html>